package cn.tedu.csmall.passport.service.impl;

import cn.tedu.csmall.passport.mapper.RoleMapper;
import cn.tedu.csmall.passport.pojo.vo.RoleListItemVo;
import cn.tedu.csmall.passport.service.RoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class RoleServiceImpl implements RoleService {


    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<RoleListItemVo> list() {
        log.debug("开始处理【查询角色列表】的业务,无参数");
        List<RoleListItemVo> list = roleMapper.list();
        return list;
    }
}
